package nickthissen.iracing.datamodels;

import java.util.ArrayList;

import com.google.gson.Gson;

public class PostList extends PageItemList
{
	public int ThreadId;
	public String ThreadTitle;
	
	public int ForumId;
	public String ForumTitle;
	public String ForumUrl;

	public ArrayList<Post> Posts;
	public String PollHtml;
	public boolean CanReply;

    public boolean IsWatching;

	public static PostList fromJson(String json)
	{
		Gson gson = new Gson();
		PostListDataModel data = gson.fromJson(json, PostListDataModel.class);
		return data.d;
	}
	
	private class PostListDataModel
	{
		public PostList d;
	}
}
